package com.guigu.guligateway.properties;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@ConfigurationProperties(prefix = "auth-properties")
@Configuration
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AuthProperties {
    // jwt配置
    private Jwt jwt;
    // 不需要token的请求路径
    private List<String> notNeedTokenPaths;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Jwt {
        private Integer expire;
        private String secret;
    }
}
